<link href="/css/tl_style.css" type="text/css" rel="stylesheet"/>

<div class="row book-item">
    <div class="span1">
        <div class="stats">
            <div class="votes">
                <strong>68</strong>喜欢
            </div>
            <div class="answered">
                <strong>12</strong>评论
            </div>    `

        </div>
        <div class="views-orange">
            <?php
            if($activity['art_sale_state'] == 1) echo '售票中';
            else if($activity['art_sale_state'] == 0) echo '待售票';
            else if($activity['art_sale_state'] == -1) echo '已结束';
            ?>
        </div>

        <div class="views-orange">
            <a class="<?php if($activity['art_publisher'] == $_SESSION['user']['username']) echo 'youarehere' ?>" href="/activity/publish?edit_type=modify&id=<?php echo $activity['id']; ?>">编辑</a>
        </div>

        <div class="views-orange">
            <a class="<?php if($activity['art_publisher'] == $_SESSION['user']['username']) echo 'youarehere' ?>" href="/activity/publish?edit_type=delete&id=<?php echo $activity['id']; ?>">删除</a>
        </div>

    </div>
    <div class="span7">
        <h3>
            <a class="question-hyperlink" href="/activity/show?type=<?php echo $activity['art_type']; ?>&id=<?php echo $activity['id']; ?>"><?php echo $activity['art_title']; ?></a>
        </h3>
        <div class="status-date">
            [演出方] <?php echo $activity['art_actor'];?>  　
            [时间] <?php echo $activity['art_play_starttime'];?>  　
            [演出地点] <?php echo $activity['art_place'];?>　　
        </div>
        <p><?php

            $description = $activity['art_description'];
            echo utf_substr($description,400);
            ?><a href="/activity/show?type=<?php echo $activity['art_type']; ?>&id=<?php echo $activity['id']; ?>">[…]</a>
        </p>
        <p>
            <a class="post-tag" href="/book/tagged/47" tagid="47">售票中</a>
            <a class="post-tag" href="/book/tagged/281" tagid="281">昆曲</a>
            <a class="post-tag" href="/book/tagged/438" tagid="438">折子戏</a>
        </p>
    </div>
    <div class="span4" >
        <a href="/activity/show?type=<?php echo $activity['art_type']; ?>&id=<?php echo $activity['id']; ?>" class="book-cover-box pull-right">
            <img  class="bookcover" alt="" src="<?php echo $activity['art_img_src']; ?>">
            <span class="ebook"></span>
        </a>
    </div>
</div>
